<?php
/**
 * @package		Joomla.Site
 * @subpackage	mod_films
 * @copyright	Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;
require_once(dirname(__FILE__).'/helper.php');

if(isset($_GET['alt'])) {
	$artAlias = $_GET['alt'];
	$film = modFilmsHelper::getArticlesByAlias($artAlias);
} else {
	$defaultID = $params->get('default');
	$film = modFilmsHelper::getArticlesDefault($defaultID);
}

// Include the syndicate functions only once
require JModuleHelper::getLayoutPath('mod_films', $params->get('layout', 'default'));
